/*
  ========================================
  GRID LAYOUT FIXES - March 22, 2026
  ========================================
  
  Changes made to fix tile layout issues:
  
  1. .suite-features-grid (index.php):
     - Added grid-auto-rows: minmax(320px, auto) to maintain equal tile heights
     - Added align-items: start to align items to top
     - Prevents tiles from stretching to different heights based on content length
  
  2. .grid-item (index.php tiles):
     - Added min-height: 320px to enforce minimum height
     - Added display: flex with flex-direction: column for content alignment
     - Added justify-content: flex-start to align content to top
     - Uses !important to override any conflicting styles
  
  3. Media Queries Updates:
     - Changed tablet breakpoint from 768px to 1024px (shows 2 columns instead of 1)
     - Changed mobile breakpoint from 480px to 600px (single column only on tiny phones)
     - Added grid-auto-rows: minmax(280px, auto) for tablet view to maintain heights
  
  4. Related fix in css/style.css:
     - Added missing .moduleListWrapperCols.cols3 class for mod.php tiles
     - This fixes tiles on product pages (e.g., /time-card-management)
     
  ========================================
*/

#gridbtn1{
    background-color: #334391;
    color: white;
    min-width: 250px;
    min-height: 90px;
    font-weight: bolder;
}
#gridbtn1:hover{
    background-color: #F7A600;
    color: white;
   
}
.contactbtn{
    background-color: #334391;
    color: white;
    min-width: 150px;
    min-height: 40px;
    border-radius: 5px;
    font-weight: bolder;
}
#contactbtn:hover{
    background-color: #F7A600;
    color: white;
}


.gridreqbtn
{
    display: grid;
   
   justify-content: center;
   align-items: center;
 
   text-align: center; 
}   
.reqclick{
    background-color: #334391;
    color: white;
    border-radius: 5px;
 
}
.reqclick:hover{
    background-color: #F7A600;
    color: white;
}
.gridheading{
    display: grid;
   
    justify-content: center;
    align-items: center;
  
    text-align: center;
    background-color:white; /* Optional, add a background for visibility */
    
}

.gridheading:n{
    color: #334391; /* Change text color on hover */
    background-color: #334391; /* Add background color on hover */
    transform: translateY(-10px); /* Move heading slightly up on hover */
    transition: all 0.3s ease; /* Add smooth transition for hover effect */
    
}    
    
.suite-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Forces all grid rows to be at least 320px tall to maintain equal tile heights */
    grid-auto-rows: minmax(320px, auto);
    gap: 0px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    width: 100%;
    /* Aligns grid items to the top of each grid cell */
    align-items: start;
}
.icon {
    width: 50px;
    height: 50px;

    margin: 0 auto 20px;

}


.grid-item {
    background-color: white;
    min-width: 0;
    overflow-wrap: break-word;
    text-align: center;
    padding: 15px 10px;
    transition: transform 0.3s, box-shadow 0.4s;
    position: relative;
    /* Ensures all tiles maintain a minimum height of 320px */
    min-height: 320px !important;
    /* Uses flexbox layout for better content alignment */
    display: flex !important;
    /* Stacks content vertically within each tile */
    flex-direction: column !important;
    /* Aligns content to the top of each tile */
    justify-content: flex-start !important;
}
.grid-item h3 {
    font-size: 20px;
    color: #0e0b0b;
    margin-bottom: 10px;
    font-weight: bolder;
}
.grid-item p {
    font-size: 16px;
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.6;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color:#334391;
    color: #ffffff;
  
}
.grid-item:hover h3 {
    color:white;  
}

.grid-item:hover p {
    color:white; 
}

/* Mobile View - Adjusting columns and padding */
@media (max-width: 1024px) {
    .suite-features-grid {
        /* Changed from 768px to 1024px to show 2 columns on larger tablets */
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 10px; /* Smaller gap for mobile screens */
        padding: 10px;
        /* Maintain equal heights on 2-column layout */
        grid-auto-rows: minmax(280px, auto);
    }

    .grid-item {
        padding: 15px 10px; /* Adjust padding for smaller screens */
    }
}

/* Extra small mobile view */
@media (max-width: 600px) {
    .suite-features-grid {
        /* Changed from 480px to 600px - single column only on very small phones */
        grid-template-columns: 1fr; /* Single column for very small screens */
        gap: 5px; /* Even smaller gap */
        padding: 5px;
        /* Allow single column to expand naturally without fixed height */
        grid-auto-rows: auto;
    }

    .grid-item {
        padding: 10px 5px; /* Smaller padding */
    }

    .grid-item h3 {
        font-size: 18px; /* Reduce font size for smaller screens */
    }

    .grid-item p {
        font-size: 14px; /* Reduce font size for smaller screens */
    }
}

